package com.tju.resource.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tju.resource.model.SysUser;
import com.tju.resource.tool.tool.ClientParameters;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 用户信息
 */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {

    /*修改用户信息*/
    int modifyUserInformation(@Param("user") SysUser sysUser);

    /*分页查询全部用户信息*/
    IPage<SysUser> getPageUser(Page<SysUser> page, @Param("pa") ClientParameters parameter);

    /*查询个人用户信息*/
    SysUser getPersonalInformation(@Param("user") SysUser sysUser);

}